using System.IO;

namespace SimpleServiceBus.Bus.MessageManagement.Serialization
{
    public interface IMessageSerializer
    {
        void Serialize(object messages, Stream stream);
        object Deserialize(Stream stream);
    }
}